# Maintainer: Krassy Boykinov <kboykinov@teamcentrixx.com>
pkgname=libunibreak
pkgver=5.1
pkgrel=3
pkgdesc="Implementation of the line breaking and word breaking algorithms"
url="https://github.com/adah1972/libunibreak"
arch="all"
license="Zlib"
subpackages="$pkgname-dev"
source="https://github.com/adah1972/libunibreak/releases/download/libunibreak_${pkgver//./_}/libunibreak-$pkgver.tar.gz"
options="!check" # no tests

build() {
	CFLAGS="$CFLAGS -O2 -flto=auto" \
	./configure \
		--prefix=/usr \
		--host=$CHOST \
		--build=$CBUILD \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c7762c0a5212a69de69fde7dcb3281e0d642a27da881337a6b0f71fac84fd097940dc92059d3daaf91dd21ae8b77d835432da058371958d0eb15af30077e2fba  libunibreak-5.1.tar.gz
"
